

function toucnScroll() {
    let select = document.getElementById('shop-select').getElementsByClassName('mint-navbar')[0];
    window.addEventListener("touchmove", function (e) {
        var h = select.offsetTop,
            scrollTop = document.documentElement.scrollTop;
        fiexSelect(scrollTop, h);
    })
}
function fiexSelect(des, height) {
    let select = document.getElementById('shop-select').getElementsByClassName('mint-navbar')[0];
    if (des > height) {
        select.setAttribute('style', 'position:fixed;top:50px;left:25%;width:75%;')
    } else {
        select.setAttribute('style', '')
        console.log(22);
    }
}
export default {
    toucnScroll
}